# Contribuitor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=smdev
pkgver=0.2.3
pkgrel=0
pkgdesc="A mostly mdev-compatible suckless program to manage device nodes"
url="https://core.suckless.org/smdev/"
arch="all"
license="MIT"
depends=""
makedepends="linux-headers"
subpackages=""
source="https://git.suckless.org/smdev/snapshot/smdev-0.2.3.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	echo "CC = cc" >> $builddir/config.mk 
}

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR=$pkgdir install || return 1
}

sha512sums="69e776189221548b2e261e1b9d3b6bbbfcf1b0500ad87a8c4e39aa6176a2212646c50774077f1286788f78d6200f65144d43039b81a95d3469c580fefb8c054e  smdev-0.2.3.tar.gz"
